package cn.easy.mortgage.bean;

public abstract class HjPGResultBaseBean {
    private int flag;

    public int getFlag() {
        return flag;
    }

    public void setFlag(int flag) {
        this.flag = flag;
    }

    public String getMessage() {
        if (flag == 0) {
            return "成功";
        } else if (flag == 1) {
            return "身份异常";
        } else if (flag == 9999) {
            return "接口异常";
        } else if (flag == 1001001) {
            return "无基准价";
        }
        return "未知错误";
    }

    public boolean getSuccess() {
        return flag == 0;
    }

}
